#:: Copyright (c) Microsoft Corporation.
#:: Licensed under the MIT License.
data=/home/work_nfs4_ssd/hfxue/workspace/wenet1218/examples/wenetspeech_stutter/s0/data
model_path=/home/work_nfs7/hfxue/checkpoint/stutter/hubert_2
gen_subset=test
result_path=${model_path}/decode_ctc/${gen_subset}

mkdir -p ${result_path}

export PYTHONENCODING=UTF-8
DEVICES=7

CUDA_VISIBLE_DEVICES=$DEVICES python examples/speech_recognition/infer.py $data --task audio_finetuning --nbest 1 \
     --path ${model_path}/checkpoint_best.pt --gen-subset ${gen_subset} --w2l-decoder viterbi --word-score -1 --sil-weight 0 --criterion ctc \
     --post-process none --normalize  \
     --results-path ${result_path} --batch-size 1
# Print prediction label: --label-only true --batch-size 1
# --quiet
# Train Transcoder: --Transcoder true
